package com.juyu.miliao.common.builder;

import com.juyu.miliao.common.domain.dto.UserVipMqMessage;

import java.time.LocalDateTime;

/**
 * UserVip MQ信息构造器
 * @author xuanqicheng
 */
public class UserVipMqMessageBuilder {

    private UserVipMqMessage userVipMqMessage = new UserVipMqMessage();

    public UserVipMqMessageBuilder userVipId(int userVipId){
        userVipMqMessage.setUserVipId(userVipId);
        return this;
    }

    public UserVipMqMessageBuilder userId(long userId){
        userVipMqMessage.setUserId(userId);
        return this;
    }

    public UserVipMqMessageBuilder vipId(int vipId){
        userVipMqMessage.setVipId(vipId);
        return this;
    }
    public UserVipMqMessageBuilder expireTime(LocalDateTime expireTime){
        userVipMqMessage.setExpireTime(expireTime);
        return this;
    }
    public UserVipMqMessage build(){
        return userVipMqMessage;
    }
}
